package com.th.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.th.system.mapper.UsUserMapper;
import com.th.system.domain.UsUser;
import com.th.system.service.IUsUserService;

/**
 * 客户Service业务层处理
 *
 * @author ruoyi
 * @date 2023-06-24
 */
@Service
public class UsUserServiceImpl implements IUsUserService
{
    @Autowired
    private UsUserMapper usUserMapper;

    /**
     * 查询客户
     *
     * @param id 客户主键
     * @return 客户
     */
    @Override
    public UsUser selectUsUserById(Long id)
    {
        return usUserMapper.selectUsUserById(id);
    }

    /**
     * 查询客户列表
     *
     * @param usUser 客户
     * @return 客户
     */
    @Override
    public List<UsUser> selectUsUserList(UsUser usUser)
    {
        return usUserMapper.selectUsUserList(usUser);
    }

    /**
     * 新增客户
     *
     * @param usUser 客户
     * @return 结果
     */
    @Override
    public int insertUsUser(UsUser usUser)
    {
        return usUserMapper.insertUsUser(usUser);
    }

    /**
     * 修改客户
     *
     * @param usUser 客户
     * @return 结果
     */
    @Override
    public int updateUsUser(UsUser usUser)
    {
        return usUserMapper.updateUsUser(usUser);
    }

    /**
     * 批量删除客户
     *
     * @param ids 需要删除的客户主键
     * @return 结果
     */
    @Override
    public int deleteUsUserByIds(Long[] ids)
    {
        return usUserMapper.deleteUsUserByIds(ids);
    }

    /**
     * 删除客户信息
     *
     * @param id 客户主键
     * @return 结果
     */
    @Override
    public int deleteUsUserById(Long id)
    {
        return usUserMapper.deleteUsUserById(id);
    }
}
